<%@ page contentType="text/html;charset=gbk" %>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.oa.database.*"%>
<%@ page import="com.oa.util.*"%>
<%@ page import="com.oa.flow.Transact"%>
<%
request.setCharacterEncoding("GBK");
%>
<%@ include file="/share/login_info.jsp"%>
<%
String mRecordID=request.getParameter("RecordID");
String mFileName=request.getParameter("FileName");
//String mFileType=mFileName.substring(mFileName.lastIndexOf("."));
String mDescript=request.getParameter("Descript");

DataConn dataConn = new DataConn();
PreparedStatement prestmt=null;
String mSql="Update Template Set FileName = '"+ mFileName +"',Descript = '"+ mDescript +"' Where RecordID='"+ mRecordID +"'";
prestmt =dataConn.getConnection().prepareStatement(mSql);
prestmt.execute();
prestmt.close();
dataConn.close();

response.sendRedirect("TemplateEdit.jsp?RecordID="+mRecordID);
%>
